package ru.exigenservices.intern.service;

import ru.exigenservices.intern.model.Contact;
import ru.exigenservices.intern.model.Group;
import java.util.List;

public interface AddressBookService {
    List<Contact> getContacts();
    Contact getContact(Long id);
    Contact saveContact(Contact contact);
    Contact deleteContact(Contact contact);

    List<Group> getGroups();
    Group getGroup(Long id);
    Group saveGroup(Group group);
    Group deleteGroup(Group group);
}
